home *** CD-ROM | disk | FTP | other *** search
- on exitFrame
- global blist, rlist, licklist
- set licklist to ["blue r ", "red r ", "pink r ", "green r "]
- repeat while the soundBusy of 1
- set zlist to []
- repeat with rrr = 1 to 2
- set stub to random(7) + 6
- repeat while (getPos(zlist, stub) > 0) or (getAt(blist, stub - 6) = 0)
- set stub to stub + 1
- if stub > 14 then
- set stub to 7
- end if
- setAt(blist, stub - 6, the number of cast (getAt(licklist, random(4)) & "1") - 1)
- end repeat
- add(zlist, stub)
- end repeat
- repeat with yyy = 1 to 2
- repeat with listsub = 1 to 2
- set zzz to getAt(zlist, listsub)
- if getAt(blist, zzz - 6) <> 0 then
- set the castNum of sprite zzz to getAt(blist, zzz - 6) + yyy
- end if
- end repeat
- updateStage()
- mydelay(15)
- end repeat
- repeat with yyy = 2 down to 1
- repeat with listsub = 1 to 2
- set zzz to getAt(zlist, listsub)
- if getAt(blist, zzz - 6) <> 0 then
- set the castNum of sprite zzz to getAt(blist, zzz - 6) + yyy
- end if
- end repeat
- updateStage()
- mydelay(15)
- end repeat
- repeat with listsub = 1 to 2
- set zzz to getAt(zlist, listsub)
- set the castNum of sprite zzz to getAt(rlist, zzz - 6)
- set the foreColor of sprite zzz to 255
- set the backColor of sprite zzz to 0
- end repeat
- updateStage()
- end repeat
- end
-